using System;
using System.Collections.Generic;
using System.Text;
using emp.DALFactory;
using emp.IDAL;
using emp.Model;
using System.Collections;

namespace emp.BLL
{
    public class TaskScheduleSetup
    {
        public void Insert(TaskScheduleSetupInfo tssinfo)
        {
            ITaskScheduleSetup city = emp.DALFactory.TaskScheduleSetup.Create();
            city.Insert(tssinfo);
        }

        public void Update(TaskScheduleSetupInfo tssinfo, int tssid)
        {
            ITaskScheduleSetup city = emp.DALFactory.TaskScheduleSetup.Create();
            city.Update(tssinfo, tssid);
        }
        public void Delete(int tssid)
        {
            ITaskScheduleSetup city = emp.DALFactory.TaskScheduleSetup.Create();
            city.Delect(tssid);
        }
        public IList getTask_Schedule_Setup()
        {
            ITaskScheduleSetup city = emp.DALFactory.TaskScheduleSetup.Create();
            return city.getTask_Schedule_Setup();

        }

        public TaskScheduleSetupInfo getTask_Schedule_StepInfo(int tss_id)
        {
            ITaskScheduleSetup city = emp.DALFactory.TaskScheduleSetup.Create();
            return city.getTask_Schedule_StepInfo(tss_id);
        }

        public int is_Task_One(int tbi_id)
        {
            ITaskScheduleSetup city = emp.DALFactory.TaskScheduleSetup.Create();
            return city.is_Task_One(tbi_id);
        }


        public IList getTask_Schedule_State(string tss_type)
        {
            ITaskScheduleSetup city = emp.DALFactory.TaskScheduleSetup.Create();
            return city.getTask_Schedule_State(tss_type);
        }
    }
}
